package ink.onei.mydemo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import ink.onei.common.annotation.Excel;
import ink.onei.common.core.domain.BaseEntity;

/**
 * 笔记对象 bobo
 * 
 * @author nekotako
 * @date 2024-02-02
 */
public class Bobo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 分享人id */
    @Excel(name = "分享人id")
    private Integer shareId;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 评论人id */
    @Excel(name = "评论人id")
    private Integer commentId;

    /** 笔记类型 1是穿搭，2是美食，3是彩妆，4是影视，5是职场，6是情感，7是家居，8是游戏，9是旅行，10是健身 */
    @Excel(name = "笔记类型 1是穿搭，2是美食，3是彩妆，4是影视，5是职场，6是情感，7是家居，8是游戏，9是旅行，10是健身")
    private Integer type;

    /** 操作人id，点赞、收藏、@ */
    @Excel(name = "操作人id，点赞、收藏、@")
    private Integer operateId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setShareId(Integer shareId) 
    {
        this.shareId = shareId;
    }

    public Integer getShareId() 
    {
        return shareId;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCommentId(Integer commentId) 
    {
        this.commentId = commentId;
    }

    public Integer getCommentId() 
    {
        return commentId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setOperateId(Integer operateId) 
    {
        this.operateId = operateId;
    }

    public Integer getOperateId() 
    {
        return operateId;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shareId", getShareId())
            .append("img", getImg())
            .append("title", getTitle())
            .append("commentId", getCommentId())
            .append("type", getType())
            .append("operateId", getOperateId())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
